package com.mapper;

import org.springframework.stereotype.Component;
import sun.awt.image.ImageWatched;


import java.util.LinkedHashMap;
import java.util.List;

/**
 * Created by head79 on 2017/6/21.
 * @author lss
 * @descripton  excute SQL
 */
@Component
public interface BaseMapper {
    /**
     *@descripton  直接执行SQL，但是要在mybatis 修改settings，否则null无法插入
     * @param sql
     * @return
     */

    List<LinkedHashMap<String, Object>> superSelect(String sql);

    /**
     * @descrption SQL 进行复杂多表update
     *@param sql
     *
     */

    Boolean superUpdate(String sql);
}
